package com.giao.service;

import com.giao.mapper.ContractMapper;
import com.giao.pojo.ContractC;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContractServiceImpl implements ContractService {
    @Autowired
    private ContractMapper contractMapper;


    @Override
    public List<ContractC> findAllContract() {
        return contractMapper.findAllContract();
    }

    @Override
    public int deleteContract(int contract_id) {
        return contractMapper.deleteContract(contract_id);
    }

    @Override
    public int updateContract(ContractC contractC) {
        return contractMapper.updateContract(contractC);
    }

    @Override
    public int insertContract(ContractC contractC) {
        return contractMapper.insertContract(contractC);
    }

    @Override
    public ContractC findByContractId(int contract_id) {
        return contractMapper.findByContractId(contract_id);
    }

    @Override
    public int updatestartokC(Integer contract_id) {
        return contractMapper.updatestartokC(contract_id);
    }

    @Override
    public int updatestartnoC(Integer contract_id) {
        return contractMapper.updatestartnoC(contract_id);
    }
}
